<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <link rel="stylesheet" href="__PUBLIC__/Admin/css/base.css" />
    <link rel="stylesheet" href="__PUBLIC__/Admin/css/info-reg.css" />
   <script type="text/javascript" src="__PUBLIC__/Admin/plugin/ue/ueditor.config.js"></script>
    <script type="text/javascript" src="__PUBLIC__/Admin/plugin/ue/ueditor.all.min.js"></script>
    <script type="text/javascript" src="__PUBLIC__/Admin/plugin/ue/lang/zh-ch/zh-ch.js"></script>
    <title></title>
</head>

<body>
<div class="title"><h2>添加新闻</h2></div>
<form action="addanew" method="post">
    <div class="main">
        <p class="short-input ue-clear">
            <label>新闻题目</label>
            <input type="text" name="newstitle"  />
        </p>
        <p class="short-input ue-clear">
        <label>作者：</label>
        <input type="text" name="author" />
    </p>
        <p class="short-input ue-clear">
            <label>时间：</label>
            <input type="date" name="newsdate" value="{$newsdate|date='Y-m-d',###}" />

        </p>

        <p class="short-input ue-clear">
            <label>关键字</label>
            <input type="text" name="keywords" />
        </p>
        <p class="short-input ue-clear">
        <label>  内容： <script id="editor" type="text/plain" style="height:300px;width:1024px" name="newscontent"></script></label>
    </p>


    </div>
    <div class="btn ue-clear">
        <a href="javascript:;" class="confirm">确定</a>
        <a href="javascript:;" class="clear">清空内容</a>
    </div>
</form>
</body>
<script type="text/javascript" src="__PUBLIC__/Admin/js/jquery.js"></script>
<script type="text/javascript" src="__PUBLIC__/Admin/js/common.js"></script>
<script type="text/javascript" src="__PUBLIC__/Admin/js/WdatePicker.js"></script>
<script type="text/javascript">
    var  ue=UE.getEditor('editor');
    $(".select-title").on("click",function(){
        $(".select-list").toggle();
        return false;
    });
    $(".select-list").on("click","li",function(){
        var txt = $(this).text();
        $(".select-title").find("span").text(txt);
    });
    $(function(){
        //给确定按钮绑定一个点击事件
        $('.confirm').on('click',function(){
            //事件的处理程序
            $('form').submit();
        });

        //给清空内容按钮绑定一个点击事件
        $('.clear').on('click',function(){
            //事件的处理程序
            $('form')[0].reset();
        });
    });

    showRemind('input[type=text], textarea','placeholder');
</script>
</html>
